<?php
/**
 * Flea Site
 *
 * @copyright  Copyright (c) 2008 Movoin Studio (http://movoin.com)
 * @license    Apache License 2.0
 * @version    $Id: Default.php 138 2009-05-25 06:42:38Z movoin $
 */

/**
 * Controller_Default 后台控制台
 *
 * @package Site
 * @subpackage Admin
 *
 */

//{{include
FLEA::loadClass('Controller_Base');
//}}

class Controller_Default extends Controller_Base
{

    /**
     * 构造函数
     *
     * @return Controller_Default
     */
    function Controller_Default()
    {
        // 构造父类
        parent::Controller_Base();
    }

    /**
     * 显示控制台
     *
     */
    function actionIndex()
    {
        $modelFeedback =& FLEA::getSingleton( 'Model_Feedback' );
        $table =& $modelFeedback->getTable();
        $where = array(
            array( 'col_key', 'order' ),
            array( 'displayorder', 0 )
        );
        $data['rows'] = $table->findAll($where, 'created DESC', $limit, 'comment_id,options,created');

        $this->_executeView('dashboard', $data);
    }

}
